import {Component, ViewChild} from '@angular/core';

import 'rxjs/add/operator/map';
import 'rxjs/add/operator/toPromise';
import 'rxjs/add/operator/catch';
import {TestService} from "../../service/test.service";
import {PromptService} from "../../../util/prompt/prompt.service";
import {CommonService} from "../../../util/common.service";
declare var $: any;

@Component({
    moduleId: module.id,
    selector: 'test-component',
    templateUrl: "./test.html",
})

export class TestComponent {
    info: any = {
        name:"test"
    }
    originData: any[] = []

    constructor(private testService: TestService, private promptService: PromptService, private commonService: CommonService) {

    }

    ngOnInit() {
        this.originData = ['联想11111', '联想2', '联想12', '联想22', '联想13']
    }

    test(){
        this.testService.test1();
    }
}